package com.guofen.dao;

import com.guofen.pojo.SjqCompostProduceElectricity;
import com.guofen.pojo.SjqCompostProduceFault;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface SjqCompostProduceFaultMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SjqCompostProduceFault record);

    int insertSelective(SjqCompostProduceFault record);

    SjqCompostProduceFault selectByPrimaryKey(Integer id);

    SjqCompostProduceFault getlast();

    SjqCompostProduceFault getLastByEquipmentName(String equipment_name);

    int updateByPrimaryKeySelective(SjqCompostProduceFault record);

    int updateByPrimaryKey(SjqCompostProduceFault record);

    List<SjqCompostProduceFault> selectAll();

    List<SjqCompostProduceFault> selectByDate(@Param("startDate") String startDate,
                                                    @Param("endDate") String endDate);
}